/**
 * This file is part of 1genia trampoline
 * Copyright (C) 2007-2008 1genia (contact@1genia.com)
 *
 * This library is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; version 3 of the License. 
 *
 * This library is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details. 
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; see the file COPYING.TXT.  If not,
 * write to the Free Software Foundation, Inc., 51 Franklin Street,
 * Fifth Floor, Boston, MA 02110-1301, USA. 
 **/
package com.genia.toolbox.projects.toolbox_basics_project.constant;

/**
 * Class containing all used permissions.
 */
public class Permissions
{
  /**
   * private constructor for static class.
   */
  private Permissions()
  {
    // do nothing.
  }

  // country

  /**
   * allow to view an existing country in the edition form.
   */
  public static final String VIEW_UPDATE_COUNTRY = "viewUpdate:country";

  /**
   * allow to view a new country in the edition form.
   */
  public static final String VIEW_CREATE_COUNTRY = "viewCreate:country";

  /**
   * allow to update an existing country.
   */
  public static final String UPDATE_COUNTRY = "update:country";

  /**
   * allow to save a new country.
   */
  public static final String CREATE_COUNTRY = "create:country";

  // region

  /**
   * allow to view an existing region in the edition form.
   */
  public static final String VIEW_UPDATE_REGION = "viewUpdate:region";

  /**
   * allow to view a new region in the edition form.
   */
  public static final String VIEW_CREATE_REGION = "viewCreate:region";

  /**
   * allow to update an existing region.
   */
  public static final String UPDATE_REGION = "update:region";

  /**
   * allow to save a new region.
   */
  public static final String CREATE_REGION = "create:region";

  // city

  /**
   * allow to view an existing city in the edition form.
   */
  public static final String VIEW_UPDATE_CITY = "viewUpdate:city";

  /**
   * allow to view a new city in the edition form.
   */
  public static final String VIEW_CREATE_CITY = "viewCreate:city";

  /**
   * allow to update an existing city.
   */
  public static final String UPDATE_CITY = "update:city";

  /**
   * allow to save a new city.
   */
  public static final String CREATE_CITY = "create:city";

  // parameters

  /**
   * allow to view the parameters in the edition form.
   */
  public static final String VIEW_UPDATE_PARAMETERS = "viewUpdate:parameters";

  /**
   * allow to update the parameters.
   */
  public static final String UPDATE_PARAMETERS = "update:parameters";
  
  // templates 
  
  /**
   * allow to search and view templates.
   */
  public static final String SEARCH_AND_VIEW_TEMPLATE = "searchAndView:template";
  
  /**
   * allow to view an existing template in the edition form.
   */
  public static final String VIEW_UPDATE_TEMPLATE = "viewUpdate:template";

  /**
   * allow to view a new template in the edition form.
   */
  public static final String VIEW_CREATE_TEMPLATE = "viewCreate:template";

  /**
   * allow to update an existing template.
   */
  public static final String UPDATE_TEMPLATE = "update:template";

  /**
   * allow to save a new template.
   */
  public static final String CREATE_TEMPLATE = "create:template";

  /**
   * allow to delete a template.
   */
  public static final String DELETE_TEMPLATE = "delete:template";
  
  /**
   * allow to display gwt forms. 
   */
  public static final String VIEW_FORMS = "view:forms";
  
  // anonymous user
  /**
   * the role of the anonymous user.
   */
  public static final String ROLE_ANONYMOUS = "ROLE_ANONYMOUS";

}
